import request from '@/utils/request'


// 测试类
export function test() {
  return request({
    url: '/users/user/list/date',
    method: 'get'
  })
}


// 查询当日注册的用户
export function userListDate() {
  return request({
    url: '/users/user/list/date',
    method: 'get'
  })
}
// 查询所有的用户
export function userListAll() {
  return request({
    url: '/users/user/list/all',
    method: 'get'
  })
}
// 查询当前的订单
export function orderListDate() {
  return request({
    url: '/order/order/list/date',
    method: 'get'
  })
}

// 订单统计
export function orderListCategory() {
  return request({
    url: '/order/order/list/category',
    method: 'get'
  })
}

// 商家统计
export function merchantListData() {
  return request({
    url: '/merchant/merchant/list/data',
    method: 'get'
  })
}

export function merchantListAll() {
  return request({
    url: '/merchant/merchant/list/all',
    method: 'get'
  })
}

// 救援任务统计
export function rescueaList() {
  return request({
    url: '/rescue/rescuea/list/rescue',
    method: 'get'
  })
}

// 获取用户和商户的总数
export function userListTotalAll() {
  return request({
    url: '/users/user/list/totalAll',
    method: 'get'
  })
}

export function OrderAndMerchantList() {
  return request({
    url: '/merchant/merchant/list/order',
    method: 'get'
  })
}